package com.job.controller;

import com.job.common.ResponseResult;
import com.job.controller.req.MateVO;
import com.job.pojo.vo.StudentVO;
import com.job.service.AiMateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@Api("职位匹配")
@RequestMapping("/mate")
public class AiMate {

    @Resource
    private AiMateService aiMateService;

    @ApiOperation("匹配学生")
    @PostMapping("/mateStudent")
    public ResponseResult<List<StudentVO>> hrMate(@RequestBody MateVO mateVO){
        return aiMateService.aiMate(mateVO);
    }

}
